home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Doco ƒ / CSMP ƒ / CSMP-V1-057.TXT < prev    next >
Encoding:
Text File  |  1992-06-03  |  43.2 KB  |  1,125 lines

  1. C.S.M.P. Digest             Wed, 22 Apr 92       Volume 1 : Issue 57
  2.  
  3. Today's Topics:
  4.  
  5.     need mac program examples
  6.     Prograf visual programming...reactions?
  7.     Accessing specific FCB via FCBSPtr global?
  8.     Experiences with EDUCORP as a Shareware author?
  9.     Contract Job for Mac Programmers
  10.     Converting Existing Mac Header Files to C++
  11.     Porting tcsh to MacOS
  12.     TCL CDialog question
  13.     tickle (was Re: Porting tcsh to MacOS )
  14.     PBOpen crashes on "." names
  15.     Offscreen Bitmap Problem SOLVED!
  16.     Questions on THINK Pascal
  17.  
  18.  
  19. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  20.  
  21. These digests are available (by using FTP, account anonymous, your email
  22. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  23. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  24. Questions list.  The last several issues of the digest are available from
  25. sumex-aim.stanford.edu as well.
  26.  
  27. These digests are also available via email.  Just send a note saying that you
  28. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  29. automatically receive each new digest as it is created.
  30.  
  31. The articles in these digests are taken directly from comp.sys.mac.programmer.
  32. They are not edited; all articles included in this digest are in their original
  33. posted form.  The only articles that are -not- included in these digests are
  34. those which didn't receive any replies (except those that give information
  35. rather than ask a question).  All replies to each article are concatenated
  36. onto the original article in the order in which they were received.  Article
  37. threads are not added to the digests until the last article added to the
  38. thread is at least one month old (this is to ensure that the thread is dead
  39. before adding it to the digests).
  40.  
  41. Send administrative mail to mkelly@cs.uoregon.edu.
  42.  
  43. -------------------------------------------------------
  44.  
  45. From: yh0a+@andrew.cmu.edu (Yary Richard Phillip Hluchan)
  46. Subject: need mac program examples
  47. Date: 10 Mar 92 20:19:23 GMT
  48. Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
  49.  
  50. I'm trying to use the Macintosh's sound manager as described in Inside Mac
  51. volume 5.  If you have any or know of any archive sites with source code
  52. using this, please tell me... pref. in C... I'm trying to a)have my computer
  53. do some MIDI effects and b)use the midi keyboard to control some simple
  54. 8-bit sounds from the computers on-board d/a converter.
  55.  
  56. I also have a ~7 yr. old A/D converter hooked up to the serial port, current
  57. sound digitizing programs recognize it, any ideas on how to access it? Tomorrow
  58. I'll try hacking with the serl port drivers but I'd rather not drive blind.
  59.  
  60. Thnak you!  ..yary
  61.  
  62.  
  63. +++++++++++++++++++++++++++
  64.  
  65. From: Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian)
  66. Date: 18 Mar 92 03:29:00 GMT
  67. Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY
  68.  
  69. On 03-10-92, YH0A+@ANDREW.CMU.EDU wrote to ALL:
  70.  
  71.  Y> I also have a ~7 yr. old A/D converter hooked up to the serial port, 
  72.  Y> current sound digitizing programs recognize it, any ideas on how to 
  73.  Y> access it? Tomorrow I'll try hacking with the serl port drivers but 
  74.  Y> I'd rather not drive blind. 
  75.  
  76. I'm almost in the same mess myself.  A long while ago I built a Commodore 
  77. 128 audio digitizer based on a TI 548(?) chip.  That whole project cost me 
  78. $10, who knows, if I can modify it to work on the Mac, I'll upload 
  79. instructions on how to build one.  (Granted anything above a IIsi has 
  80. built in input, I'm sure there are plenty of us with older machines. :-)
  81.  
  82. This is a serially interfaced 8 bit A/D chip, and was sold in plenty by 
  83. Radio Shack a while back; it worked wonders on the commodore.  However 
  84. this chip relied on the clock signals being sent by the CPU over the 
  85. serial port to it.  The Mac's SID driver software doesn't do this, so I 
  86. have to build some sort of timing device for it, but don't know the 
  87. protocol specs for such a device and which pins drive what data over it.
  88.  
  89. I too would appreciate any info on how the sound input protocol works.
  90.  
  91.  * Freddie 1.1 * You have been found guilty of commerce with the devil.
  92.  
  93. - --  
  94. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  95.  Ray Arachelian - Internet: Ray.Arachelian@f204.n2603.z1.ieee.org
  96.  
  97. ---------------------------
  98.  
  99. From: viking@ux1.cso.uiuc.edu (Jon W. Backstrom)
  100. Subject: Prograf visual programming...reactions?
  101. Organization: University of Illinois at Urbana-Champaign
  102. Date: Tue, 10 Mar 1992 22:26:59 GMT
  103.  
  104. I've been asked to find out about information "Prograf" from TGS
  105. Systems.  Apparently, this is a visual design tool for software
  106. development that locks you into their own engine for executables.
  107.  
  108. Has anyone run into any limitations with the system?  (You can add
  109. your own C routines, but I'm worried about being totally locked into
  110. the system without being able to add a necessary routine in the end.)
  111.  
  112. If you use this tool, please offer me a reaction, positive or
  113. negative...I will summarize to the net.
  114.  
  115. Thank you!
  116.  
  117. - -------------------------------------------------------------------------------
  118.  Jon W. Backstrom                   "CD-I Authoring Tools Designed Here"
  119.  User Interface Engineer       OptImage is a Philips and Microware Partnership
  120.  OptImage
  121.  1501 50th Street, Suite 100                    Internet: viking@optimage.com
  122.  West Des Moines, IA  50265-5961                    UUCP: uunet!optimg!viking
  123. - -------------------------------------------------------------------------------
  124.  
  125. +++++++++++++++++++++++++++
  126.  
  127. From: coons@news.mr.med.ge.com.UUCP (Jim Coons 5-5092,ct52 )
  128. Organization: GE Medical Systems, Magnetic Resonance
  129. Date: Wed, 11 Mar 92 15:24:31 GMT
  130.  
  131. >From article <1992Mar10.222659.10471@ux1.cso.uiuc.edu>, by viking@ux1.cso.uiuc.edu (Jon W. Backstrom):
  132. > I've been asked to find out about information "Prograf" from TGS
  133. > Systems.  Apparently, this is a visual design tool for software
  134. > development that locks you into their own engine for executables.
  135. > Has anyone run into any limitations with the system?  (You can add
  136. > your own C routines, but I'm worried about being totally locked into
  137. > the system without being able to add a necessary routine in the end.)
  138. > If you use this tool, please offer me a reaction, positive or
  139. > negative...I will summarize to the net.
  140. > Thank you!
  141. > -------------------------------------------------------------------------------
  142. >  Jon W. Backstrom                   "CD-I Authoring Tools Designed Here"
  143. >  User Interface Engineer       OptImage is a Philips and Microware Partnership
  144. >  OptImage
  145. >  1501 50th Street, Suite 100                    Internet: viking@optimage.com
  146. >  West Des Moines, IA  50265-5961                    UUCP: uunet!optimg!viking
  147. I have found Prograph to be the easiest, most enjoyable programming
  148. environment that I have ever used.  It is by far the most interactive
  149. environment as well. With the new C, Pascal, and Fortran interface
  150. tools, you can use your existing code as well. It is really the
  151. closest thing to a perfect programming environment that I have seen.
  152.  
  153. > -------------------------------------------------------------------------------
  154.  
  155. +++++++++++++++++++++++++++
  156.  
  157. From: podenski@bcsaic.UUCP (Patrick Podenski)
  158. Date: 19 Mar 92 16:49:59 GMT
  159. Organization: Boeing Computer Services AI Center, Seattle
  160.  
  161. The correct spelling is Prograph. It comes from TGS Systems
  162. and their address is:
  163.  
  164. 2745 Dutch Village Road, Suite 200
  165. Halifax, Nova Scotia
  166. Canada  B3L 4G7
  167. (902) 455-4446
  168.  
  169. They will send you a free booklet if you call
  170. (800) 565-1978
  171.  
  172. ---------------------------
  173.  
  174. From: gurney@pacific.cps.msu.edu (Eddy J. Gurney)
  175. Subject: Accessing specific FCB via FCBSPtr global?
  176. Date: 11 Mar 92 14:15:15 GMT
  177. Organization: Dept. of Computer Engineering, Michigan State University
  178.  
  179. OK... I've checked IM and even the UseNet Macintosh Programmer's Guide
  180. Volume I and haven't been able to find a definitive answer to this 
  181. question.
  182.  
  183. The data fork of a file has been opened using a call to _Open.  When 
  184. it returns, the ioRefNum (file reference number) from the parameter 
  185. block is stored.  So far so good.
  186.  
  187. I know the FCBSPtr global points to a word which contains the LENGTH 
  188. of the FCB buffer, and that following the length word is the start of
  189. the first FCB. 
  190.  
  191.    "100 people surveyed, top three answers on the board - now, here's
  192.    the question:" If a register has the address stored in FCBSPtr and I
  193.    then add to it the file reference number obtained from _Open, where
  194.    will the register be pointing?
  195.  
  196. If I understand correctly, it should be pointing to the first byte of
  197. the FCB of the file I opened (Is that right so far?)  Do I need to
  198. take into account the length word (i.e., add another 2 bytes) so I can
  199. reference it via the FCBPBRec structure, or is that already taken into
  200. consideration in the file reference number? (again, which I'm assuming
  201. is some sort of an offset into the whole FCB buffer.)
  202.  
  203. Any info on this would be greatly appreciated!  I know there's probably
  204. another way to do it, but I'm looking for simplicity... you know, ML
  205. and everything...
  206.  
  207. aTdHvAaNnKcSe,
  208. Eddy
  209.  
  210. - -- 
  211.          Eddy J. Gurney  N8FPW       THE ECCENTRICITY GROUP           EEEEGGGG
  212. gurney@cps.msu.edu     gurney@egr.msu.edu     17158EJG@MSU.BITNET     EEE G GG
  213.    (Preferred)          (If you want to)      (If you HAVE to :-)     EEEEGGGG
  214. - --
  215.    "Failures are divided into two classes-- those who thought and never did,
  216.          and those who did and never thought."     John Charles Salak
  217.  
  218. +++++++++++++++++++++++++++
  219.  
  220. From: REEKES@applelink.apple.com (Jim Reekes)
  221. Date: 20 Mar 92 20:12:28 GMT
  222. Organization: Apple Computer, Inc.
  223.  
  224. In article <1992Mar11.141515.11630@msuinfo.cl.msu.edu>, gurney@pacific.cps.msu.edu (Eddy J. Gurney) writes:
  225. > OK... I've checked IM and even the UseNet Macintosh Programmer's Guide
  226. > Volume I and haven't been able to find a definitive answer to this 
  227. > question.
  228. > The data fork of a file has been opened using a call to _Open.  When 
  229. > it returns, the ioRefNum (file reference number) from the parameter 
  230. > block is stored.  So far so good.
  231. > I know the FCBSPtr global points to a word which contains the LENGTH 
  232. > of the FCB buffer, and that following the length word is the start of
  233. > the first FCB. 
  234. >    "100 people surveyed, top three answers on the board - now, here's
  235. >    the question:" If a register has the address stored in FCBSPtr and I
  236. >    then add to it the file reference number obtained from _Open, where
  237. >    will the register be pointing?
  238. > If I understand correctly, it should be pointing to the first byte of
  239. > the FCB of the file I opened (Is that right so far?)  Do I need to
  240. > take into account the length word (i.e., add another 2 bytes) so I can
  241. > reference it via the FCBPBRec structure, or is that already taken into
  242. > consideration in the file reference number? (again, which I'm assuming
  243. > is some sort of an offset into the whole FCB buffer.)
  244. > Any info on this would be greatly appreciated!  I know there's probably
  245. > another way to do it, but I'm looking for simplicity... you know, ML
  246. > and everything...
  247.  
  248. You should be using PBGetFCBInfo, and not accessing the low memory globals.
  249. You can index through them from the first one to the last.  This _is_ the
  250. simplest way, and it's the most compatible method.
  251.  
  252.  
  253. - -----------------------------------------------------------------------
  254. Jim Reekes, E.O.             |     Macintosh Toolbox Engineering
  255.                              |          Sound Manager Expert
  256. Apple Computer, Inc.         | "All opinions expressed are mine, and do
  257. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  258. Cupertino, CA 95014          |       employer, Apple Computer Inc."
  259.  
  260. ---------------------------
  261.  
  262. From: brecher@husc8.harvard.edu (Jonathan Brecher)
  263. Subject: Experiences with EDUCORP as a Shareware author?
  264. Date: 16 Mar 92 10:22:12 GMT
  265. Organization: Harvard Arts and Sciences Computer Services, Cambridge, MA
  266.  
  267. BACKGROUND:
  268.    A year or two ago I made several Hebrew PostScript fonts (ShalomOldStyle,
  269. ShalomScript, ShalomStick) and distributed them as shareware.  Since every
  270. shareware program I'd ever seen had an anti-EDUCORP clause, I added one as 
  271. well, saying that they must contact me for permission to distribute the fonts.
  272. Everything went well.  I even (gasp!) got some payments from happy users.
  273.  
  274. DILEMMA:
  275.    Now EDUCORP has found my fonts and written me for permission.  I find myself
  276. in a quandry -- I have no idea why I'd possibly want to _deny_ them permission.
  277. I've received lots of advice saying how bad EDUCORP is, but never with 
  278. specific details.  So I ask the net:
  279.  
  280. What do you think of EDUCORP?  Have you liked what they've done for you, or 
  281. have they screwed you over?  Why shouldn't I let them distribute my fonts?
  282.  
  283.  
  284. SOME RESPONSES SO FAR:
  285. Avoid them -- they're known in some circles as EDUSLIME.
  286.    [no details given]
  287. Best they offered me was the chance to let them distribute my stuff for free 
  288.    [ok, but what's wrong with that?  Isn't distribution good?]
  289. See if they'll give you royalties on disks sold 
  290.    [anyone done this?]
  291. People will feel they've already paid EDUCORP, so they won't pay you 
  292. [yeah, but without EDUCORP they wouldn't have had the font in the first place,
  293.  so they would never have thought of paying before]
  294.  
  295. Comments?
  296.  
  297. Email preferred, of course.  I'll summarize if there's interest.
  298.  
  299.                     jonathan brecher
  300.                     brecher@husc.harvard.edu
  301.  
  302. +++++++++++++++++++++++++++
  303.  
  304. From: nagle@netcom.com (John Nagle)
  305. Date: 17 Mar 92 18:31:13 GMT
  306. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  307.  
  308.  
  309.        The fundamental problem with Educorp is that they publish a catalog
  310. of shareware disks with a price for each disk that doesn't include the
  311. shareware fee.  
  312.  
  313.        Some enterprising person should work out some way to pay for 
  314. shareware that looks like a cross between the Copyright Clearance
  315. Center and the automatic registration process for Teleport modems.
  316.  
  317.                     John Nagle
  318.  
  319. +++++++++++++++++++++++++++
  320.  
  321. From: mxmora@unix.SRI.COM (Matt Mora)
  322. Date: 20 Mar 92 16:20:33 GMT
  323. Organization: SRI International, Menlo Park, California
  324.  
  325. In article <6=9htjgnagle@netcom.com> nagle@netcom.com (John Nagle) writes:
  326.  
  327. >       Some enterprising person should work out some way to pay for 
  328. >shareware that looks like a cross between the Copyright Clearance
  329. >Center and the automatic registration process for Teleport modems.
  330.  
  331. What Educorp should do is pay a percentage of the shareware fee, kind of 
  332. like a royalty payment. Maybe 10% of the shareware cost of the
  333. price of each of the programs on the disk. Then if a user registers
  334. the program the author would give them a 10% discount because the user
  335. has already paid that amount via the cost of the disk.
  336.  
  337. The disks that Educorp sells are worthless without the programs that are on it.
  338. They should pay somthing to the authors of those programs.
  339.  
  340. If the programs are freeware then educorp pays nothing.
  341.  
  342. Matt
  343. - -- 
  344. ___________________________________________________________
  345. Matthew Mora                |   my Mac  Matt_Mora@sri.com
  346. SRI International           |  my unix  mxmora@unix.sri.com
  347. ___________________________________________________________
  348.  
  349. ---------------------------
  350.  
  351. From: rc05@gte.com (Ramesh Chandak)
  352. Subject: Contract Job for Mac Programmers
  353. Date: 16 Mar 92 21:10:16 GMT
  354. Organization: GTE Laboratories Incorporated, Waltham MA
  355.  
  356. i have advertised in the relevant newsgroups ( misc.jobs.offered and
  357. misc.jobs.contract ) about a contract opportunity for Mac programmers.
  358.  
  359. I'd like to know if that could be done here in this forum ? If not, that's
  360. okay.  I thought this could be a good way to reach directly mac programmers
  361. since those other newsgroups reach other audiences as well.  
  362.  
  363. Let me know. Thanx.
  364. - - Ramesh
  365. rc05@gte.com
  366.  
  367. +++++++++++++++++++++++++++
  368.  
  369. From: cory@howtek.UUCP (Cory Kempf)
  370. Date: Fri, 20 Mar 92 12:22:18 EST
  371. Organization: Howtek, Inc.  Hudson, New Hampshire
  372.  
  373.  
  374. In article <15527@bunny.GTE.COM> (comp.sys.mac.programmer), rc05@gte.com (Ramesh Chandak) writes:
  375. >i have advertised in the relevant newsgroups ( misc.jobs.offered and
  376. >misc.jobs.contract ) about a contract opportunity for Mac programmers.
  377. >
  378. >I'd like to know if that could be done here in this forum ? If not, that's
  379. >okay.  I thought this could be a good way to reach directly mac programmers
  380. >since those other newsgroups reach other audiences as well.  
  381.  
  382. Personally, I would rather you didn't.  I think that you will also
  383. find that to be the net.consensus.  If a person who has access to
  384. the net is looking for a job, they will read the jobs newsgroup. 
  385. I know I do.  When they are not looking, they frequently unsubscribe.
  386. Putting job postings in their face in other places is rather rude.
  387.  
  388. +C
  389.  
  390. - ---------------------------------------------------------------
  391. Cory Kempf                  domain: cory@howtek.uucp
  392. Howtek, Inc.            bang: decvax!fasfax!howtek!cory
  393. Remember: Never play russian roulette with a semi-automatic.
  394.  
  395. ---------------------------
  396.  
  397. From: aep@world.std.com (Andrew E Page)
  398. Subject: Converting Existing Mac Header Files to C++
  399. Date: 16 Mar 92 22:01:28 GMT
  400. Organization: The World Public Access UNIX, Brookline, MA
  401.  
  402. /*
  403. In a recent adventure in Mac C++ programming
  404. I was establishing a class that contained
  405. a const Rect member
  406. */
  407.  
  408. class ClassWithConstRect {
  409.     const Rect theRect ;
  410.     ClassWithConstRect(int Height, int Width) ;
  411.     } ;
  412.     
  413. /*
  414. I wanted to have an initializer part of the constructor
  415. that would initialize the const Rect without the need
  416. for a call to some function that would return a Rect.
  417.  
  418. With some generous advice obtained from the net 
  419. (credit to John Hickin for unselfish help)
  420. I tried  the following redefinition of a Rect in 
  421. Types.h
  422. */
  423.  
  424.  
  425. #ifndef __cplusplus
  426. struct Rect {
  427.     short top;
  428.     short left;
  429.     short bottom;
  430.     short right;
  431. };
  432. #else
  433. struct Rect {
  434.     short top;
  435.     short left;
  436.     short bottom;
  437.     short right;
  438.         Rect(void) {} ; // Necessary or every Rect in every other structure wants initializers
  439.         Rect(short t, short l, short b, short r) 
  440.         : top(t), left(l), bottom(b), right(r) {}
  441. };
  442. #endif
  443.  
  444. /*
  445. Unfortuantely while the addition of the Rect(void) constructor elimanted most
  446. of the errors caused by the lone Rect(t,l,b,r) constructor it produced the
  447. following error:
  448.  
  449. File "Andrew:Applications:MPW:Interfaces:CIncludes:Files.h"; line 369 # error:  member CInfoPBRec::dirInfo of class DirInfo with constructor in union
  450.  
  451. which is essentially griping about the constructor possibly
  452. overwriting in the union where it might not be desired, despite
  453. the fact that the default constructor does not alter any data
  454.  
  455. */
  456.  
  457.  
  458. /*
  459. Bottom line question:
  460.  
  461.     Is there some value in what I'm trying above, or should I just
  462.         declare a new 'oRect' structure and cast where I need to in 
  463.         order to make it work for anything that I develop?
  464. */
  465. - -- 
  466. Andrew E. Page CTO(Warrior Poet)|   Decision and Effort The Archer and Arrow
  467. DSP Ironworks                   |     The difference between what we are
  468. Macintosh and DSP Technology    |           and what we want to be.
  469.  
  470. +++++++++++++++++++++++++++
  471.  
  472. From: eric_berdahl@taligent.com (Eric Berdahl)
  473. Date: 19 Mar 92 22:33:59 GMT
  474. Organization: Taligent, Inc.
  475.  
  476. In article <BL87uG.LIA@world.std.com>, aep@world.std.com (Andrew E Page) writes:
  477. > [Introduction deleted]
  478. > /*
  479. > Bottom line question:
  480. >     Is there some value in what I'm trying above, or should I just
  481. >         declare a new 'oRect' structure and cast where I need to in 
  482. >         order to make it work for anything that I develop?
  483. > */
  484.  
  485. Not only is there value in what you're trying to do, it has been done.
  486. In MacApp 3.0, Apple ships a complete set of toolbox #include files that
  487. have been updated for C++-like stuff.  In addition to Rect, which _is_
  488. required to be a dumb struct because of things like unions, there is CRect,
  489. a class that inherits from Rect and adds some cool member functions.  So,
  490. the bottom line is check out MacApp 3.0 and see if it does what you like.
  491.  
  492. Eric
  493. - --
  494. Eric Berdahl
  495. Internet: eric_berdahl@taligent.com
  496. AppleLink: BERDAHL
  497. MaBell: (408) 862-6280
  498.  
  499. +++++++++++++++++++++++++++
  500.  
  501. From: cory@howtek.UUCP (Cory Kempf)
  502. Date: Fri, 20 Mar 92 12:32:30 EST
  503. Organization: Howtek, Inc.  Hudson, New Hampshire
  504.  
  505.  
  506. In article <BL87uG.LIA@world.std.com> (comp.sys.mac.programmer,comp.lang.c++), aep@world.std.com (Andrew E Page) writes:
  507. [attempt and reasoning behind a redef. of Rect as a class]
  508.  
  509. >Bottom line question:
  510.  
  511. >    Is there some value in what I'm trying above, or should I just
  512. >        declare a new 'oRect' structure and cast where I need to in 
  513. >        order to make it work for anything that I develop?
  514.  
  515. I would suggest that you NOT redefine the type Rect, as there is a
  516. LOT of other code that depends on it working as it always has.  Rather,
  517. create a class 'CRect' or somesuch that does what you want, and provide
  518. constructors/casts for Rects (I would also add a constructor / access
  519. methods that allow access via topLect & botRight).
  520.  
  521. +C
  522.  
  523. - ---------------------------------------------------------------
  524. Cory Kempf                  domain: cory@howtek.uucp
  525. Howtek, Inc.            bang: decvax!fasfax!howtek!cory
  526. Remember: Never play russian roulette with a semi-automatic.
  527.  
  528. ---------------------------
  529.  
  530. From: dave@coombs.anu.edu.au (David G. White)
  531. Subject: Porting tcsh to MacOS
  532. Organization: Computer Services Centre, Australian National University
  533. Date: 18 Mar 92 04:04:42 GMT
  534.  
  535. I've been wanting for a while to have some sort of CLI on the mac (not because
  536. I prefer CLI's over GUI's or anything-just 'because' ;-) ) and I finally
  537. decided that it would be a better idea to port a unix shell rather than write
  538. one of my own from scratch.  Now I know about that CLIM program but it's a
  539. bit .. unfriendly (and I know that CLI's are unfriendly by default but there
  540. are shades of gray here..) and something like tcsh is much nicer.
  541.  
  542. My problem is that I don't know C.  However I'm fairly competent in Pascal and
  543. can pick up what I think are the important bits in the distribution files.
  544. (I'm actually tossing up between bash and tcsh).  My other problem stems from 
  545. the first in that I only have the PD C compilers to work with (I'm intending
  546. on using Harvest C which is, apparently, MPW compatible).
  547.  
  548. So basically I'm asking is it worth it or will it take weeks ?  and what will
  549. I have to change in the code to make it run under the MacOS (not A/UX) - in
  550. general ?
  551.  
  552. Thanks v. much in anticipation.
  553.  
  554. David.
  555.  
  556. - --
  557. _ David G. White ________________________   ______   _____ "What I did with _
  558. _ dave@coombs.anu.edu.au _________________  \    /  ______ Rex Mossop wasnt _
  559. _ 2 Spencer Street, Turner,  ______________  \  /  _______ Porn,it was Art" _
  560. _ ACT 2601, Australia. Ph: +61 6 248 6836 __  \/  ________  - Julian Clarey _
  561.  
  562. +++++++++++++++++++++++++++
  563.  
  564. From: dave@coombs.anu.edu.au (David G. White)
  565. Organization: Australian National University
  566. Date: Wed, 18 Mar 92 04:34:11 GMT
  567.  
  568. Path: coombs!dave
  569. Date: 18 Mar 92 04:04:42 GMT
  570. Message-ID: <dave.700891482@coombs>
  571. Newsgroups: comp.sys.mac.programmer
  572. Subject: Porting tcsh to MacOS
  573. Keywords: tcsh,compiler
  574.  
  575. I've been wanting for a while to have some sort of CLI on the mac (not because
  576. I prefer CLI's over GUI's or anything-just 'because' ;-) ) and I finally
  577. decided that it would be a better idea to port a unix shell rather than write
  578. one of my own from scratch.  Now I know about that CLIM program but it's a
  579. bit .. unfriendly (and I know that CLI's are unfriendly by default but there
  580. are shades of gray here..) and something like tcsh is much nicer.
  581.  
  582. My problem is that I don't know C.  However I'm fairly competent in Pascal and
  583. can pick up what I think are the important bits in the distribution files.
  584. (I'm actually tossing up between bash and tcsh).  My other problem stems from 
  585. the first in that I only have the PD C compilers to work with (I'm intending
  586. on using Harvest C which is, apparently, MPW compatible).
  587.  
  588. So basically I'm asking is it worth it or will it take weeks ?  and what will
  589. I have to change in the code to make it run under the MacOS (not A/UX) - in
  590. general ?
  591.  
  592. Thanks v. much in anticipation.
  593.  
  594. David.
  595.  
  596. - --
  597. _ David G. White ________________________   ______   _____ "What I did with _
  598. _ dave@coombs.anu.edu.au _________________  \    /  ______ Rex Mossop wasnt _
  599. _ 2 Spencer Street, Turner,  ______________  \  /  _______ Porn,it was Art" _
  600. _ ACT 2601, Australia. Ph: +61 6 248 6836 __  \/  ________  - Julian Clarey _
  601.  
  602. +++++++++++++++++++++++++++
  603.  
  604. From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
  605. Organization: Integrated Systems Laboratory, ETH, Zurich
  606. Date: Wed, 18 Mar 1992 10:49:53 GMT
  607.  
  608. In article <dave.700891482@coombs> dave@coombs.anu.edu.au (David G. White) writes:
  609. >I've been wanting for a while to have some sort of CLI on the mac (not because
  610. >I prefer CLI's over GUI's or anything-just 'because' ;-) ) and I finally
  611. >decided that it would be a better idea to port a unix shell rather than write
  612. >one of my own from scratch.  Now I know about that CLIM program but it's a
  613. >bit .. unfriendly (and I know that CLI's are unfriendly by default but there
  614. >are shades of gray here..) and something like tcsh is much nicer.
  615. >
  616. >My problem is that I don't know C.  However I'm fairly competent in Pascal and
  617. >can pick up what I think are the important bits in the distribution files.
  618. >(I'm actually tossing up between bash and tcsh).  My other problem stems from 
  619. >the first in that I only have the PD C compilers to work with (I'm intending
  620. >on using Harvest C which is, apparently, MPW compatible).
  621. >
  622. >So basically I'm asking is it worth it or will it take weeks ?  and what will
  623. >I have to change in the code to make it run under the MacOS (not A/UX) - in
  624. >general ?
  625.  
  626. The problem with shells is that they are just that - shells. But if you wan't
  627. to use them, you have to port at least 50 or so further utilities:
  628.  
  629. ls
  630. rm
  631. cp
  632. cat
  633.  
  634. None of which is particularly difficult, but still takes time. Another approach
  635. is to make the shell run MPW tools, not only Applications, but how to catch
  636. standard input/output is completely undocumented.
  637.  
  638. So: If you have 6 Months time and want to become a top C programmer, by all
  639. means go ahead with your project. But don't expect to do it in 2 weeks.
  640.  
  641. Matthias
  642.  
  643. - -----
  644. Matthias Neeracher                                   neeri@iis.ethz.ch
  645.    "No, what he didn't like about heroes was that they were usually
  646.     suicidally gloomy when sober and homicidally insane when drunk."
  647.                           -- Terry Pratchett, _The Colour of Magic_
  648.  
  649. +++++++++++++++++++++++++++
  650.  
  651. From: e-sink@uiuc.edu (Eric W. Sink)
  652. Organization: University of Illinois at Urbana-Champaign
  653. Date: Wed, 18 Mar 1992 16:01:15 GMT
  654.  
  655. In <dave.700891482@coombs> dave@coombs.anu.edu.au (David G. White) writes:
  656.  
  657. >I've been wanting for a while to have some sort of CLI on the mac (not because
  658. >I prefer CLI's over GUI's or anything-just 'because' ;-) ) and I finally
  659. >decided that it would be a better idea to port a unix shell rather than write
  660. >one of my own from scratch.  Now I know about that CLIM program but it's a
  661. >bit .. unfriendly (and I know that CLI's are unfriendly by default but there
  662. >are shades of gray here..) and something like tcsh is much nicer.
  663.  
  664. I agree, having tcsh on the Mac would be really nice, but...
  665.  
  666. >My problem is that I don't know C.  However I'm fairly competent in Pascal and
  667. >can pick up what I think are the important bits in the distribution files.
  668. >(I'm actually tossing up between bash and tcsh).  My other problem stems from 
  669. >the first in that I only have the PD C compilers to work with (I'm intending
  670. >on using Harvest C which is, apparently, MPW compatible).
  671.  
  672. Red alert.  First of all, if you don't know C, this will be a big job.
  673. More precisely, if you were a cyborg combination of Brian Kernighan and
  674. Kent Sandvik, it would still be big job.  Second, a quick scan of the tcsh
  675. source code tells me that you would be dealing with 39540 lines of code,
  676. in 46 C source files plus 23 C header files.  Anything this big is well
  677. beyond the abilities of any version of Harvest C which you have your hands
  678. on.  If you wanted to make a serious stab at the project, you should use
  679. THINK C, but there will still be problems.  Tcsh makes extensive use of
  680. termcap, environment variables, fork/execl, job control, and a number of
  681. other UNIX-dependent things.  All of these are missing in every C development
  682. environment I know of.  In other words, THINK C is a fantastic compiler,
  683. but tcsh is very UNIX dependent.  The task could be done, but it would be
  684. an ENORMOUS job.
  685.  
  686. Also, as someone else pointed out, just having the shell doesn't mean you
  687. would then have all the utilities that are normally associated with it.
  688. There is darn-little that you can do with tcsh alone.
  689.  
  690. >So basically I'm asking is it worth it or will it take weeks ?  and what will
  691. >I have to change in the code to make it run under the MacOS (not A/UX) - in
  692. >general ?
  693.  
  694. Would it be worth it ?  Maybe.
  695. Will it take weeks ?  Longer than that.
  696.  
  697. If you want to attempt the project, get THINK C.  If I'm going to get email
  698. from Australia, I wouldn't want it to be hostile. :-)  By far the most
  699. stable version of Harvest C is sitting on my Mac right now - nowhere else.
  700. Even that version is just beginning to be able to compile nontrivial Mac
  701. applications.  Compiling anything as big as tcsh while porting it at the
  702. same time would be out of Harvest C's league right now.
  703.  
  704. OR, wait until the next release of Alpha.  It has a shell built in, and it
  705. is neato.  It's not tcsh, it's based on Tcl, but I like it a lot.
  706.  
  707. - -- 
  708. Eric W. Sink,  Spatial Analysis and Systems Team
  709. USACERL, P.O. Box 9005, Champaign, IL 61826-9005
  710. 1-800-USA-CERL x449,   e-sink@uiuc.edu
  711.  
  712. +++++++++++++++++++++++++++
  713.  
  714. From: lai@Apple.COM (Ed Lai)
  715. Date: 18 Mar 92 18:46:15 GMT
  716. Organization: Apple Computer Inc., Cupertino, CA
  717.  
  718. In article <1992Mar18.160115.8667@sunb10.cs.uiuc.edu> e-sink@uiuc.edu writes:
  719. >
  720. >OR, wait until the next release of Alpha.  It has a shell built in, and it
  721. >is neato.  It's not tcsh, it's based on Tcl, but I like it a lot.
  722. >
  723. If you want to have a shell, another program to consider is Tickle, which so
  724. happend is also based on Tcl. You can write XTCL (Tickle's XCMD counterpart)
  725. to extend it to do what you want. XTCL has code resource so you can also do
  726. it with PASCAL. You can get Tickle, which is free by ftp from ftp.msen.com
  727. in the directory pub/vendor/ice.
  728.  
  729. /* Disclaimer: All statments and opinions expressed are my own */
  730. /* Edmund K. Lai                                               */
  731. /* Apple Computer, MS37-UP                                     */
  732. /* 20525 Mariani Ave,                                          */
  733. /* Cupertino, CA 95014                                         */
  734. /* (408)974-6272                                               */
  735. zW@h9cOi
  736.  
  737. +++++++++++++++++++++++++++
  738.  
  739. From: cory@enigami.mv.com (Cory Kempf)
  740. Date: Fri, 20 Mar 92 00:32:57 EST
  741. Organization: EnigamI, Inc., Nashua, NH
  742.  
  743.  
  744. In article <dave.700891482@coombs> (comp.sys.mac.programmer), dave@coombs.anu.edu.au (David G. White) writes:
  745. >I've been wanting for a while to have some sort of CLI on the mac (not because
  746. >I prefer CLI's over GUI's or anything-just 'because' ;-) ) and I finally
  747. >decided that it would be a better idea to port a unix shell rather than write
  748. >one of my own from scratch.
  749.  
  750. Real dumb question here, but why not just use the MPW shell?  It is
  751. a command line interface, and it already can control most of the Mac.
  752.  If you added a few additional tools to send some AppleEvents to the
  753. finder or to QuickKeys, I think that you would have what you are looking
  754. for (though why you want it is beyond me!)
  755.  
  756. +C
  757.  
  758.  
  759. - -------------------------------------------------------------
  760. Cory Kempf                    EnigamI, Inc.
  761. cory@enigami.mv.com           ...!decvax!enigami!cory
  762. Never play Russian Roulette with a semi-automatic.
  763.  
  764. ---------------------------
  765.  
  766. From: Chris_Stuart@mail.cornell.edu
  767. Subject: TCL CDialog question
  768. Organization: Cornell Information Technologies
  769. Date: Wed, 18 Mar 92 21:04:18 GMT
  770.  
  771. I'm implementing a dialog box using the CDLOG classes in TCL.  The dialog asks
  772. for user input.  I have an editable DITL where the user types in a name and
  773. then clicks the OK button.  Non-TCL programs can use the GetDItem and GetIText
  774. functions to access what the user typed in.  I'm having a bear of a time trying
  775. to figure out how to get that string from the TCL-created dialog box, because
  776. TCL creates a dialog as panes in a window?  
  777.  
  778. Someone suggested using FindViewByID, but I'm not sure how that's going to
  779. help.
  780.  
  781. Help.
  782. - ---------------------------------
  783. Chris_Stuart@mail.cornell.edu
  784. Programmer/Analyst
  785. Cornell Information Technologies 
  786.  
  787. +++++++++++++++++++++++++++
  788.  
  789. From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
  790. Date: 19 Mar 92 12:15:57 GMT
  791. Organization: Royal Institute of Technology, Stockholm, Sweden
  792.  
  793. .cit.cornell.edu> Chris_Stuart@mail.cornell.edu writes:
  794.  
  795.    Someone suggested using FindViewByID, but I'm not sure how that's going to
  796.    help.
  797.  
  798. The various item panes gets view ID == DITL number, so if your
  799. edit text item has number 4, do:
  800.  
  801.     CDialogText * theText = ( CDialogText * ) FindViewByID ( 4 ) ;
  802.  
  803.     ASSERT ( theText ) ;
  804.  
  805.     // now get the data out of the text item...
  806.  
  807.  
  808. - -- 
  809. This signature is placed into the Public Domain by Jon W{tte (h+@nada.kth.se)
  810.                      - The worlds only romantic cynic -
  811.  
  812. +++++++++++++++++++++++++++
  813.  
  814. From: iron@imag.imag.fr (Francois Menneteau)
  815. Date: 20 Mar 92 13:06:32 GMT
  816. Organization: IMAG Institute, University of Grenoble, France
  817.  
  818. In article <1992Mar18.210418.5363@piccolo.cit.cornell.edu> Chris_Stuart@mail.cornell.edu writes:
  819. >I'm implementing a dialog box using the CDLOG classes in TCL.  The dialog asks
  820. >for user input.  I have an editable DITL where the user types in a name and
  821. >then clicks the OK button.  Non-TCL programs can use the GetDItem and GetIText
  822. >functions to access what the user typed in.  I'm having a bear of a time trying
  823. >to figure out how to get that string from the TCL-created dialog box, because
  824. >TCL creates a dialog as panes in a window?  
  825. >
  826. >Someone suggested using FindViewByID, but I'm not sure how that's going to
  827. >help.
  828. >
  829.  
  830. Yes it helps!
  831.  
  832. for example you can write:
  833.  
  834. class CYourDLOGDialog : CDLOGDialog {
  835. public:
  836.     CEditText   *itsEditText ;
  837.     
  838.     void    IYourDLOGDialog(void) ;
  839. }
  840.  
  841. CYourDLOGDialog::IYourDLOGDialog()
  842. {
  843.     itsEditText = (CEditText *) FindViewByID(THE_ID_OF_YOUR_EDIT_TEXT) ;
  844. }
  845.  
  846. Then once you have you EditText pane, you can use the corresponding method
  847. to set or get text.
  848.  
  849. - -- 
  850. Francois Menneteau ()   __|||||__   () "... I had their lives in my hands
  851. ================== ()    /O   O\    () their fate their fortune in my visions
  852. iron@imag.fr       ()    - .|. -    () No one believed in my true prophecy
  853. ================== ()     \=^=/     () And now it's too late."  (Iron Maiden)
  854.  
  855. ---------------------------
  856.  
  857. From: stui@avalon.caladan.wa.com (Stuart Burden)
  858. Subject: tickle (was Re: Porting tcsh to MacOS )
  859. Date: 19 Mar 92 03:43:22 GMT
  860. Organization: Avalon, beyond the Mists
  861.  
  862. In article <63987@apple.Apple.COM> (comp.sys.mac.programmer), lai@Apple.COM (Ed Lai) writes:
  863.   | If you want to have a shell, another program to consider is Tickle, which so
  864.   | happend is also based on Tcl. You can write XTCL (Tickle's XCMD counterpart)
  865.   | to extend it to do what you want. XTCL has code resource so you can also do
  866.   | it with PASCAL. You can get Tickle, which is free by ftp from ftp.msen.com
  867.   | in the directory pub/vendor/ice.
  868.  
  869. Speaking of tickle.. has anyone written any neat/useful XTCL's yet
  870. that can be shared?
  871.  
  872. I have several scripts (I've posted one already).. but haven't seen
  873. any XTCL's except those that Tim provided with the release.
  874.  
  875. Cheers.
  876.  
  877. Stu.
  878.  
  879. - --
  880. stui@avalon.uucp
  881. stui@avalon.caladan.wa.com
  882.  
  883. +++++++++++++++++++++++++++
  884.  
  885. From: e-sink@uiuc.edu (Eric W. Sink)
  886. Date: 19 Mar 92 14:52:05 GMT
  887. Organization: University of Illinois at Urbana-Champaign
  888.  
  889. In <1CE00001.uqmvay@avalon.caladan.wa.com> stui@avalon.caladan.wa.com (Stuart Burden) writes:
  890.  
  891. >Speaking of tickle.. has anyone written any neat/useful XTCL's yet
  892. >that can be shared?
  893.  
  894. >I have several scripts (I've posted one already).. but haven't seen
  895. >any XTCL's except those that Tim provided with the release.
  896.  
  897. I'll probably be writing some, as soon as I figure out how to write
  898. them using THINK C instead of MPW.
  899.  
  900. Speaking of tickle.. has anyone else noticed that tickle does most of
  901. what FilterTop is supposed to be ?
  902.  
  903. - -- 
  904. Eric W. Sink,  Spatial Analysis and Systems Team
  905. USACERL, P.O. Box 9005, Champaign, IL 61826-9005
  906. 1-800-USA-CERL x449,   e-sink@uiuc.edu
  907.  
  908. +++++++++++++++++++++++++++
  909.  
  910. From: lai@Apple.COM (Ed Lai)
  911. Date: 20 Mar 92 21:13:36 GMT
  912. Organization: Apple Computer Inc., Cupertino, CA
  913.  
  914. In article <1CE00001.uqmvay@avalon.caladan.wa.com> stui@avalon.caladan.wa.com (Stuart Burden) writes:
  915. >
  916. >Speaking of tickle.. has anyone written any neat/useful XTCL's yet
  917. >that can be shared?
  918. >
  919. >I have several scripts (I've posted one already).. but haven't seen
  920. >any XTCL's except those that Tim provided with the release.
  921. >
  922.  
  923. It should be fairly easy to do a DoXCMD/DoXFCN XTCL, that would making
  924. writing a lot of XTCL unnecessary. And writing a DoFKEY XTCL would require
  925. almost no effort at all.
  926.  
  927.  
  928. /* Disclaimer: All statments and opinions expressed are my own */
  929. /* Edmund K. Lai                                               */
  930. /* Apple Computer, MS37-UP                                     */
  931. /* 20525 Mariani Ave,                                          */
  932. /* Cupertino, CA 95014                                         */
  933. /* (408)974-6272                                               */
  934. zW@h9cOi
  935.  
  936.  
  937. ---------------------------
  938.  
  939. From: wprice@pomona.claremont.edu
  940. Subject: PBOpen crashes on "." names
  941. Organization: Pomona College
  942. Date: 19 Mar 92 16:17:11 PST
  943.  
  944.     Why is it that the Finder in System 7 allows you to prefix a filename
  945. with the "." period character?  That character in the first position is
  946. reserved for driver names as far as I've been told.  Now, perhaps most of the
  947. system is intelligent enought o determine the difference between a driver named
  948. .something and a file, but it does not appear to be that way in most cases.  If
  949. you try to do a PBOpen ASYNC on a file name like ".login" (a common UNIX
  950. filename) in the Mac file system, some Macs will crash immediately and others
  951. will crash soon thereafter from corruption.  
  952.     Is there a safe way to open files named this way?  If not, why does the
  953. Finder allow it?  
  954.  
  955. ______________________________________________
  956. Frank Price  | wprice@pomona.claremont.edu
  957.  
  958.  
  959. +++++++++++++++++++++++++++
  960.  
  961. From: resnick@cogsci.uiuc.edu (Pete Resnick)
  962. Date: 20 Mar 92 15:49:44 GMT
  963. Organization: University of Illinois at Urbana
  964.  
  965. wprice@pomona.claremont.edu writes:
  966.  
  967. >    Is there a safe way to open files named this way?  If not, why does the
  968. >Finder allow it?  
  969.  
  970. Yes. Under System 7, use PBOpenDF instead. This will not work under System
  971. 6 or less.
  972.  
  973. pr
  974. - --
  975. Pete Resnick             (...so what is a mojo, and why would one be rising?)
  976. Graduate assistant - Philosophy Department, Gregory Hall, UIUC
  977. System manager - Cognitive Science Group, Beckman Institute, UIUC
  978. Internet: resnick@cogsci.uiuc.edu
  979.  
  980. ---------------------------
  981.  
  982. From: bmor@kimbark.uchicago.edu (Brad Morris)
  983. Subject: Offscreen Bitmap Problem SOLVED!
  984. Date: 20 Mar 92 14:59:17 GMT
  985. Organization: University of Chicago Computing Organizations
  986.  
  987. I posted about a month ago saying that I was having trouble using
  988. code in Tech Note #120 to create offscreen bitmaps.  I have solved
  989. my problem but don't really understand why.  Details:
  990.   
  991. The symptoms were that using the apple offscreen bitmap code
  992. (creating the offscreen world from scrach, not using gWorlds)
  993. everything worked fine on 32 Bit QD machines, but not on non
  994. 32 Bit QD machines.  The bitmaps appeared as they would in two
  995. color mode when tried on non 32 Bit QD machines.
  996.  
  997. After fiddling around a bit, I decided that it might be because
  998. I was converting a pallette to a CLUT to pass to the offscreen
  999. bitmap creation code.  Copying the pallette into a CLUT did no
  1000. good.  But when I rearraged the CLUT, putting black last instead
  1001. of second of sixteen, things worked fine.  The original reason
  1002. I put black second in the pallette is that ResEdit says to do so.
  1003.  
  1004. So I think that non 32 Bit QD gave up searching the CLUT when it
  1005. got to black, but 32 Bit QD searches the entire CLUT.  Does this
  1006. make sense?
  1007.  
  1008. If you have any thoughts or comments, please reply via email.
  1009. I will post a summary if there is interest.
  1010.  
  1011. Brad Morris
  1012. bmor@midway.uchicago.edu
  1013.  
  1014. +++++++++++++++++++++++++++
  1015.  
  1016. From: d88-jwa@byse.nada.kth.se (Jon W{tte)
  1017. Date: 20 Mar 92 19:15:20 GMT
  1018. Organization: Royal Institute of Technology, Stockholm, Sweden
  1019.  
  1020. .edu> bmor@kimbark.uchicago.edu (Brad Morris) writes:
  1021.  
  1022.    After fiddling around a bit, I decided that it might be because
  1023.    I was converting a pallette to a CLUT to pass to the offscreen
  1024.    bitmap creation code.  Copying the pallette into a CLUT did no
  1025.    good.  But when I rearraged the CLUT, putting black last instead
  1026.    of second of sixteen, things worked fine.  The original reason
  1027.    I put black second in the pallette is that ResEdit says to do so.
  1028.  
  1029. If you read Inside Mac V, you'll see why it says so.
  1030.  
  1031. When using a palette; colors are allocated in order as long as there
  1032. are any free left. Black & white are very important, ergo they come
  1033. first in the palette.
  1034.  
  1035. However, Inside Mac ALSO says that the first & last entries in a CLUT
  1036. should be white & black respectively. This is because QuickDraw is
  1037. written that way (which makes sense; extending "0" and "1" to
  1038. "00000000" and "11111111" is simpler than to "10010111" and "00110100")
  1039.  
  1040. Hope this helps some,
  1041.  
  1042. - -- 
  1043. This signature is placed into the Public Domain by Jon W{tte (h+@nada.kth.se)
  1044.                      - The worlds only romantic cynic -
  1045.  
  1046. ---------------------------
  1047.  
  1048. From: ykwong@ee.umanitoba.ca (Dennis Y. K. Wong)
  1049. Subject: Questions on THINK Pascal
  1050. Date: 20 Mar 92 23:45:15 GMT
  1051. Organization: Elect & Comp Engineering, U of Manitoba, Winnipeg, Manitoba,Canada
  1052.  
  1053. Does anybody out there know the difference of using 
  1054. Units & Libraries in a project on THINK Pascal? I mean
  1055. the difference on the execution time of a program. I try
  1056. to look up from the manual but it does not mention anything 
  1057. about that. 
  1058.  
  1059. I am programming a large program managing complex numbers.
  1060. I define all related functions & procedures in a unit. 
  1061. I've already tried to build that unit as library. And the
  1062. excution time is significantly fast by using library. But I 
  1063. wonder why there is a big difference. According to the manual,
  1064. the difference between Units & Libraries are the compilation
  1065. time. Is there any more explanations?
  1066.  
  1067. Another question: How to program to animate the cursor?
  1068. I know that I have to create 'acur' & 'CURS' resources but 
  1069. I don't know how to animate it.
  1070.  
  1071. Last question: How to play a sound resource on Pascal program?
  1072.  
  1073. I don't have the Inside Macintosh, could anybody provide me 
  1074. the answer?
  1075.  
  1076. Thanks.
  1077.  
  1078. +++++++++++++++++++++++++++
  1079.  
  1080. From: siegel@world.std.com (Rich Siegel)
  1081. Date: 21 Mar 92 04:56:56 GMT
  1082. Organization: Symantec Language Products Group
  1083.  
  1084. In article <1992Mar20.234515.27521@ccu.umanitoba.ca> ykwong@ee.umanitoba.ca (Dennis Y. K. Wong) writes:
  1085. >
  1086. >I am programming a large program managing complex numbers.
  1087. >I define all related functions & procedures in a unit. 
  1088. >I've already tried to build that unit as library. And the
  1089. >excution time is significantly fast by using library. But I 
  1090. >wonder why there is a big difference. According to the manual,
  1091. >the difference between Units & Libraries are the compilation
  1092. >time. Is there any more explanations?
  1093.  
  1094.     If the unit in your project has the "D" option turned on (for
  1095. debugging), then code in that unit will run slower than normal, because
  1096. of the overhead of the debugging support. Debugging code is *not*
  1097. generated for code compiled into libraries or built applications, or
  1098. if the "D" option is turned off for that particular file.
  1099.  
  1100. R.
  1101.  
  1102.  
  1103.  
  1104. - -- 
  1105. - -----------------------------------------------------------------------
  1106. Rich Siegel                              Internet: siegel@world.std.com
  1107. Senior Software Engineer                 Applelink: SIEGEL
  1108. Symantec Languages Group
  1109.  
  1110. ---------------------------
  1111.  
  1112. End of C.S.M.P. Digest
  1113. **********************
  1114.